package com.rd.server.modules.room.service;

import com.mybatisflex.core.service.IService;
import com.rd.modules.group.AddGroup;
import com.rd.modules.room.model.ao.RoomAO;
import com.rd.modules.room.model.ao.RoomTransferAO;
import com.rd.server.modules.room.model.RoomPO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 房间服务接口
 */
public interface RoomService extends IService<RoomPO> {

    /**
     * 创建房间
     * @return 房间ID
     */
    String createRoom();

    /**
     * 房间结算
     */
    void closeRoom(RoomAO roomAO);

    /**
     * 添加转账记录
     * @param transfer
     */
    void transfer(RoomTransferAO transfer);
} 